<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //存数据
    function a1(arr1){
        localStorage.setItem('sj',JSON.stringify(arr1))
    }
    //取数据
    function b(){
        var aa=localStorage.getItem('sj')
        if(aa!=null){
            return JSON.parse(aa)
        }else{
            return []
        }
    }
    function a2(arr2){
        localStorage.setItem('aa',JSON.stringify(arr2))
    }
    function b2(){
        var bb=localStorage.getItem("aa")
        if(bb!=null){
            return JSON.parse(bb)
        }else{
            return []
        }
    }
    function a3(arr3){
        localStorage.setItem('a3',JSON.stringify(arr3))
    }
    function b3(){
        var aa3=localStorage.getItem('a3')
        if(aa3!=null){
            return JSON.parse(aa3)
        }else{
            return []
        }
    }
</script>